package com.hyg.www.carrenting.serviceImp;

import com.hyg.www.carrenting.dao.UserDao;
import com.hyg.www.carrenting.model.Users;
import com.hyg.www.carrenting.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Auther: hyg
 * @Date: 2018/11/27 11:31
 * @Description:
 */
@Service
public class UserServiceImp implements UserService {
    //用户Dao
    @Resource
    private UserDao userDao;

    /**
     *  根据id获取用户信息
     * getUserById
     * @param id
     * @return
     */
    @Override
    public Users getUserById(String id) {
        return this.userDao.getUserById(id);
    }
}
